#!/bin/bash

rm *.o
clang -O1 -emit-llvm -c test2.c prefetch_lib.cpp
llvm-link test2.o prefetch_lib.o -o prog.o
echo 3 > /proc/sys/vm/drop_caches
llvm-2.9/Debug/bin/lli -load=/usr/lib/librt.so -disable-lazy-compilation prog.o
